#!/bin/bash

#Control Center for BigLinux
#
#Authors:
#  Bruno Goncalves Araujo <www.biglinux.com.br>
#
#License: GPLv2 or later
#################################################

#Translation
export TEXTDOMAINDIR="/usr/share/locale-langpack"
export TEXTDOMAIN=bigcontrolcenter 

#Mouseover theme
mouseover_open="onmouseover=\"Tip('"
mouseover_close="', BALLOON, true, ABOVE, true, OFFSETX, -17)\" onmouseout=\"UnTip()\""


function open_header()
{

/usr/share/bigbashview/system-css.sh

cat << EOF
<style><!--
.botao a, .botao a:visited {  
padding:0px;
text-decoration: none;
text-align:center;	
background:  url('/usr/share/bigcontrolcenter/default/images/category-background.png') no-repeat
center center;	
width:120px;  
height:24px;	
display:block;	
	}

.botao a:hover { 
background: url('$HOME/.bigcontrolcenter/category-background-over.png') no-repeat 
center center;

               }

#div-header{

  background-image: url(/usr/share/bigcontrolcenter/default/images/category-header-background.png);
  height:57px;
  width: 100%;
}

 body{
  margin:0;
  padding:0 0 100px 0;
  overflow:hidden;

 } 

 #rodape{
  position:absolute;
  bottom:0;
  right:20;
  height:40px;
 }

#div-body{
  height:100%;
  overflow:auto;
 }





body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; background-image: url(/usr/share/bigcontrolcenter/default/images/category-body-background.png); background-attachment:fixed;}
--></style>


<div id="div-header"><table><tr><td width="40" align="center"><img src="icon.png"></td><td><font size=+2>

<script type="text/javascript">
<!--
function Reveal (it, box) {
var vis = (box.checked) ? "block" : "none";
document.getElementById(it).style.display = vis;
}

function Hide (it, box) {
var vis = (box.checked) ? "none" : "none";
document.getElementById(it).style.display = vis;
}

//-->
</script>
  <script type="text/javascript" src="/usr/share/bigcontrolcenter/default/js/wz_tooltip.js"></script>
  <script type="text/javascript" src="$HOME/.bigcontrolcenter/tip_balloon.js"></script>
EOF
}

function close_header()
{
echo '</td></tr></table></div>
<div id="div-body">'
}